<?php
	class LanguageController extends AdminController
	{
		public function actionIndex()
		{
			$language = Language::model()->findAll();
			$this->render('index',array('language' => $language));
		}
		public function actionCreate()
		{
			$model = new Language();
			if(isset($_POST['Language']))
			{
				$model->attributes = $_POST['Language'];
				$model->save();
				$this->redirect(Yii::app()->createAbsoluteUrl('bookingsystem/language/index'));
			}
			$this->render('create',array('model' => $model));
		}
		public function actionUpdate()
		{

		}
		public function actionDelete()
		{

		}
	}
?>